/**
 * Yolema.com Inc.
 * Copyright (c) 2011-2012 All Rights Reserved.
 */
package org.grayrabbit.pay.chinapay.config;

import java.io.Serializable;

/**
 * 银联信息
 * 
 * @author wy
 * @version $Id: ChinaPayInfo.java, v 0.1 2012-6-1 下午4:35:59 wy Exp $
 */
public class ChinaPayInfo implements Serializable {

    /** serialVersionUID */
    private static final long  serialVersionUID             = -1271634384269745069L;

    /**银联系统Code*/
    public static final String CHINAPAY_CODE                = "chinaPay";
    /**
     * 商户私钥
     */
    public static final String MERPR_KEY                    = "config/chinapay/MerPrK.key";

    /**
     * ChinaPay公钥
     */
    public static final String PGPUBK_KEY                   = "config/chinapay/PgPubk.key";

    /**ChinaPay公钥 merId为15个9*/
    public static final String PGPUBK_KEY_ID                = "999999999999999";

    public static final String PAY_VERSION                  = "20040916";

    public static final String REFUND_VERSION               = "20070129";
    
    /**支付网关值*/
    public static final String TRADE_GATEID                 = "8607";

    /**交易后台接收的url*/
    public static final String TRADE_BACKGROUND_RESULT_URL  = "pay_trade_result.action";

    /**退款后台接收的url*/
    public static final String REFUND_BACKGROUND_RESULT_URL = "pay_refund_result.action";

    /**消费交易成功*/
    public static final String TRADRE_SUCCESS_CODE          = "1001";

    /**退款提交成功 1*/
    public static final String REFUND_SUBMIT_SUCCESS        = "1";

    /**退款成功*/
    public static final String REFUND_SUCCESS               = "3";

    /**退款失败*/
    public static final String REFUND_FAIL                  = "8";

    /** 商户编号 */
    private String             memId;

    /** 交易地址 */
    private String             tradeUrl;

    /**退款地址*/
    private String             refundUrl;

    public String getMemId() {
        return memId;
    }

    public void setMemId(String memId) {
        this.memId = memId;
    }

    public String getTradeUrl() {
        return tradeUrl;
    }

    public void setTradeUrl(String tradeUrl) {
        this.tradeUrl = tradeUrl;
    }

    public String getRefundUrl() {
        return refundUrl;
    }

    public void setRefundUrl(String refundUrl) {
        this.refundUrl = refundUrl;
    }

}
